package homework.day03;

import sun.applet.Main;

/**
 * @author ThinkBook
 */
public class Test05 {
    public static void main(String[] args) {
        for (int i = 0; i < 3; i++) {
            System.out.println(i);
            if (i == 1) {
                return;
            }
            System.out.println("return后的输出语句");
        }
    }
    public static void main07(String[] args) {
        for(int i=0;i<3;i++) {
            System.out.println(i);
            if(i==1) {
                continue;
            }
            System.out.println("continue后的输出语句");
        }
    }
    public static void main06(String[] args) {
        for (int i = 0; i < 5; i++) {
            System.out.print(i);
            i*=0.1;
        }
        System.out.println("循环结束");
    }
    public static void main05(String[] args) {
        int count=0;
        while(count>0);
        {
            System.out.println(count);
        }
    }
    public static void main04(String[] args) {
        int a=80;
        switch(a) {
            case 90:{
                System.out.println("优秀");
            }
            case 80:{
                System.out.println("⼀般");
            }
            case 60:{
                System.out.println("及格");
                break;
            }
            case 50:{
                System.out.println("基础弱");
            }
        }
    }
    public static void main03(String[] args) {
        int age=45;
        if(age>20) {
            System.out.println("年轻⼈");
        }else if(age>40){
            System.out.println("中年⼈");
        }else if(age>60){
            System.out.println("⽼年⼈");
        }
    }
    public static void main02(String[] args) {
        int b=5;
        if(b>4) {
            b--;
            System.out.println("b⼤于4");
        }else {
            System.out.println("b不⼤于4");
        }
    }
    public static void main01(String[] args) {
        int b=5;
        if(b>4)
            System.out.println(b);
        else
            b--;
        System.out.println(b);
    }
}
